import service from '@/utils/request'

export const useHousePatientApi = (id: Number) => {
	return service.get('/sys/housepatient/' + id)
}

export const useHousePatientSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/housepatient', dataForm)
	} else {
		return service.post('/sys/housepatient/save', dataForm)
	}
}
export const usePatientSubmitApi = (dataForm: any) => {
	return service.put('/sys/patient', dataForm)
}
export const useHousePatientListApi = (dataForm: any) => {
	return service.post('/sys/housepatient/list', dataForm)
}
